import { playMode } from '@/common/js/config';
import { loadSearch, loadHistoryPlay, loadLove } from '@/common/js/cache';

const state = {
  singer: {},
  playing: false,
  fullScreen: false,
  playlist: [],
  toplist: {},
  loveList: loadLove(),
  searchHistory: loadSearch(),
  playHistory: loadHistoryPlay(),
  currentIndex: -1,
  mode: playMode.sequence,
  disc: {},
};

export default state;
